Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

feat(templates): Add Android template #73

Merged
merged 10 commits into from
Jul 5, 2018

Conversation

francoischalifour
Copy link
Member

@francoischalifour francoischalifour commented Jul 4, 2018

This PR adds support for the InstantSearch Android template to the CLI.

Preview

CLI

CLI preview

Generated app

App preview

How to review

As opposed to other templates (web and iOS), there's no install task since Android Studio manages dependencies installation. The only task is the teardown which explains how to open the project (cc @PLNech if there's more useful info to log).

Please review the folder src/templates/InstantSearch Android to check if there are unnecessary files. You can ignore the snapshot files (they are used to avoid regression over time). Note that I decided to name the package com.algolia.instantsearch.app, which might not be the best.

Copy link
Member

@PLNech PLNech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@francoischalifour lovely ❤️

more useful info to log

I think that's as good as it can get, as you output the location just before :)

unnecessary files

  • test/java/com/algolia/instantsearch/app/ExampleUnitTest.java: you can remove the whole test folder
  • androidTest/java/com/algolia/instantsearch/app/ExampleInstrumentedTest.java: same, you can remove androidTest
  • drawable/product_placeholder.png: unused

Note that I decided to name the package com.algolia.instantsearch.app

I would avoid com.algolia as it won't always be used by Algolia employees. To err on the side of safety, I would use instead com.example.instantsearch.app and let the user update if relevant

Approving as these changes are not blockers, I trust you to apply those before merging :)

@francoischalifour
Copy link
Member Author

Thank you @PLNech 🙌

@francoischalifour francoischalifour merged commit d35e9c9 into master Jul 5, 2018
@francoischalifour francoischalifour deleted the feat/template-android branch July 5, 2018 08:49
aymeric-giraudet pushed a commit to algolia/instantsearch that referenced this pull request Dec 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants